//投票规则字颜色
	var oAlertRule = document.getElementById("alertRule");
	window.setInterval(function(){
		if(!oAlertRule.className){
			oAlertRule.className = "isShow"
		}else{
			oAlertRule.className = ""
		}
	},300)
//点击规则
function showrule(){
	document.getElementById("alertbody").style.display = "block";
	document.getElementById("voteRule").style.display = "block";
}

function hidealert(){
	document.getElementById("alertbody").style.display = "none";
	document.getElementById("altcontent").style.display = "none";
	document.getElementById("voteRule").style.display = "none";
}

//滚动弹窗
function move(){
	var lis0 = document.createElement('li');//从新定义一个li
	lis0.innerHTML = lis[0].innerHTML;//给li赋值
//	lis0.innerHTML = '<div class="Imgbox"><img src="img/user2.png"/></div><p>恭喜<i>小明</i>获得<i>丽丽丽丽</i>的投票</p>';//给新li赋值（只用修改）
	
	
	ispan = 0;
	timer = setInterval(function(){
		ispan-=1;
		if(ispan<=-50){//--------------------------------移动到
			listbox.style.top = "0px";
			lis[0].parentNode.removeChild(lis[0]);//删除第一个li
			run();
			clearInterval(timer);
		}else{
			ispanpx = ispan + "px";
			listbox.style.top = ispanpx;
		}
		
	},30)
	listbox.appendChild(lis0);//---------------在盒子末尾插入新li
}
var ispan = 0;
var timer,ispanpx = null;
var listbox = document.getElementById("listbox");
var lis = listbox.getElementsByTagName("li");
function run(){
	move();
}
run();


	